package gunfire.actions;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DamageAction;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class HexagonAction extends AbstractGameAction {

    public HexagonAction(AbstractPlayer p, AbstractMonster m){
        this.target = m;
        this.source = p;
    }

    @Override
    public void update() {
        int damage = this.source.currentBlock;
        this.addToBot(new DamageAction(target, new DamageInfo(source, damage, DamageInfo.DamageType.HP_LOSS), AbstractGameAction.AttackEffect.BLUNT_HEAVY));
        this.isDone = true;
    }
}
